import QtQuick 2.2
import QtQuick.Dialogs 1.1

MessageDialog {
    id: root
    icon: StandardIcon.Information
    height: 100
    width: 320
    text: "Compile message"
    title: "Compile"
    onAccepted: {
        close()
    }

    function open(titleStr, textStr, errorStr) {
        setHeight(100);
        setWidth(320);
        detailedText = errorStr;
        title = titleStr;
        text = textStr;
        visible = true;
    }
}

